{% extends "base.html" %}

{% block title %}更改邮件地址身份验证邮件{% endblock title %}
{% block subtitle %}邮件身份验证 > 更改您的邮件地址{% endblock subtitle %}

{% block content %}
    <p class="rg_em_p">如果您没有收到邮件认证，您可以更改您的会员信息的邮件地址.</p>
    <form method="post" name="fregister_email" action="{{ url_for('certify_email_update', mb_id=member.mb_id, key=key) }}" onsubmit="return fregister_email_submit(this);">
        <input type="hidden" name="token" value="">
        <div class="tbl_frm01 tbl_frm rg_em">
            <table>
                <tr>
                    <th scope="row"><label for="reg_mb_email">E-mail<strong class="sound_only">必不可少的</strong></label></th>
                    <td>
                        <input type="text" name="email" id="reg_mb_email" class="frm_input email required"
                            size="30" maxlength="100" value="{{ member.mb_email }}" required>
                    </td>
                </tr>
                <tr>
                    <th scope="row">自动注册预防</th>
                    <td>
                        <!-- Captcha Start -->
                        <fieldset id="captcha" class="captcha">
                            {% include captcha_widget(request) ignore missing %}
                        </fieldset>
                        <!-- Captcha End -->
                    </td>
                </tr>
            </table>
        </div>
        <div class="btn_confirm">
            <input type="submit" id="btn_submit" class="btn_submit" value="更改身份验证邮件">
            <a href="{{ url_for('index') }}" class="btn_cancel">取消</a>
        </div>
    </form>
    <script>
        function fregister_email_submit(f) {
            if (typeof check_captcha === "function") {
                if (!check_captcha(f)) {
                    return false;
                }
            }

            f.token.value = generate_token();

            return true;
        }
    </script>
{% endblock content %}